package org.corolla.cloth.entity;

/**
 * 辅料选择
 * @author ZJD
 *
 */
public class Accessory {
	
	/**
	 * 海绵肩垫	0.25 1
	 * 喷胶棉肩垫	0.5	1
	 * 无纺棉肩垫	1	1
	 * 棉花肩垫	1.2	1

	 * 尿素扣	0.15	4
	 * 果实扣	0.65	4
	 * 金属扣	0.53	4
	 * 贝壳扣	0.33	4
	 * 牛角扣	0.69	4
	 */
	
	/**
	 * 辅料-披肩
	 */
	public static final int Type_PJ = 0X01;
	/**
	 * 辅料-纽扣
	 */
	public static final int Type_NK = 0X02;
	
	/*****************披肩*****************
	 * 海绵肩垫	0.25 1
	 * 喷胶棉肩垫	0.5	 1
	 * 无纺棉肩垫	1	 1
	 * 棉花肩垫	1.2	 1
	 */
	/**
	 * 海绵披肩
	 */
	public static final double PJ_HM = 0.25;
	
	/**
	 * 喷胶棉披肩
	 */
	public static final double PJ_PJM = 0.5;
	
	/**
	 * 无纺棉披肩
	 */
	public static final double PJ_WFM = 1;

	/**
	 * 棉花披肩
	 */
	public static final double PJ_MH = 1.2;
	
	
	
	/*****************纽扣**********************
	 * 尿素扣	0.15	4
	 * 果实扣	0.65	4
	 * 金属扣	0.53	4
	 * 贝壳扣	0.33	4
	 * 牛角扣	0.69	4
	 */
	/**
	 * 尿素扣
	 */
	public static final double NK_NS = 0.15;	
	/**
	 * 果实扣
	 */
	public static final double NK_GS = 0.65;
	/**
	 * 金属扣
	 */
	public static final double NK_JS = 0.53;
	/**
	 * 贝壳扣
	 */
	public static final double NK_BK = 0.33;
	/**
	 * 牛角扣
	 */
	public static final double NK_NJ = 0.69;
	
	
	//辅料类型: 披肩/纽扣
	private int accessoryType;
	// 辅料价格
	private double accessoryPrice;
	// 辅料数量
	private int accessoryMount;	
	
	
	public Accessory(double accessoryPrice,
			int accessoryMount) {
		this.accessoryPrice = accessoryPrice;
		this.accessoryMount = accessoryMount;
	}
	
	public Accessory(int accessoryType, double accessoryPrice,
			int accessoryMount) {
		this.accessoryType = accessoryType;
		this.accessoryPrice = accessoryPrice;
		this.accessoryMount = accessoryMount;
	}
	
	/**
	 * 获取一种辅料的总价
	 * @return
	 */
	public double getTotalPrice(){
		return this.accessoryPrice* this.accessoryMount;
	}
	
	public int getAccessoryType() {
		return accessoryType;
	}
	public void setAccessoryType(int accessoryType) {
		this.accessoryType = accessoryType;
	}
	public double getAccessoryPrice() {
		return accessoryPrice;
	}
	public void setAccessoryPrice(double accessoryPrice) {
		this.accessoryPrice = accessoryPrice;
	}
	public int getAccessoryMount() {
		return accessoryMount;
	}
	public void setAccessoryMount(int accessoryMount) {
		this.accessoryMount = accessoryMount;
	}
	
}
